<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('yp','com_default-header'); ?>
<!--主体-->
<div class="main_all"> 
<div id="main">
  <!--右侧-->
  <div id="right">
    <p id="position"><strong>当前位置</strong>：<?php echo $position;?></p>
    <h3><?php echo $system_name[$category];?></h3>
    <div class="box p_l_20">
      <ul class="txt_list">
        <li>电话：<?php echo magic_image($telephone);?></li>
        <li>传真：<?php echo magic_image($fax);?></li>
        <li>邮箱：<?php echo magic_image($email);?></li>
        <li>地址：<?php echo $address;?></li>
        <li>邮编：<?php echo $zip;?></li>
        <hr/>
              </ul>
<?php if($map!='') { ?>
<script language="javascript" src="http://api.51ditu.com/js/maps.js"></script>
<script language="javascript" src="http://api.51ditu.com/js/ezmarker.js"></script>
<div id="maps" style="position:relative; width:90%; height:350px; border:black solid 1px;"> 
   <script language="javascript">
var maps = new LTMaps( "maps" );
var c = new LTSmallMapControl();
maps.addControl(c);
var point = new LTPoint(<?php echo $x;?>,<?php echo $y;?>); 
    maps.centerAndZoom( point, <?php echo $z;?> );
var text=new LTMapText(point,[0,-18]);
text.setLabel( "<?php echo $company_user_infos['companyname'];?>" );
setTimeout("maps.addOverLay( text );",3000);
var icon=new LTIcon("<?php echo $M['url'];?>images/centerPoi.gif",[24,24],[12,12]);
var marker=new LTMarker(new LTPoint(<?php echo $x;?>,<?php echo $y;?>),icon);
maps.addOverLay(marker);
</script>
</div>
<?php } ?>

      <div class="cb"></div>
     
    </div>
  </div>
  <!--左侧-->
  <div id="left">
<?php if($m_user) { ?><h3>热点导航</h3>
<div class="hot_nav">
      <ul>
<?php if(is_array($m_user)) foreach($m_user AS $ms) { ?>
  <li><a href="<?php echo $ms['url'];?>"><?php echo $ms['catname'];?></a></li>
<?php } ?>
      </ul>
    </div><?php } ?>
<h3>最新消息</h3>
    <div class="box">
      <ul>
<?php $DATA = get("SELECT * FROM `phpcms_yp_news` WHERE `userid`='$userid' AND status=99 ORDER BY id DESC", 10, 0, "", "");foreach($DATA AS $n => $r) { $n++;?>
<li><a href="<?php echo show_url('news',$r[id]);?>" title="<?php echo $r['title'];?>"><?php echo str_cut($r[title],28,'');?></a></li>
<?php } unset($DATA); ?>
      </ul>
    </div>
<h3>站内搜索</h3>
    <form class="box" action="<?php echo $M['url'];?>web/query.php">
      <input type="text" name="q" size="16"/><input name="search" type="submit" id="search" value="搜索"/><br/>
  <input type="radio" name="type" checked="checked" value="product"/>商品<input type="radio" name="type" value="buy"/>商机<input value="news" type="radio" name="type"/>新闻<input type="hidden" value="search" name="action" /><input name="userid" value="<?php echo $userid;?>" type="hidden" />
    </form>
  </div>
  <div class="cb"></div>
</div>
</div>
<!--尾部-->
<div id="foot"><?php echo $companyname;?><br/> 地址：<?php echo $address;?></div>
</body>
</html>